package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineAccount
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/6/24 11:54
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取已授权账户信息返回参数")
public class OceanengineAccount {


    /**
     * code : 0
     * message :
     * data : {"list":[{"advertiser_id":12312321,"advertiser_name":"test_developer","advertiser_role":1,"is_valid":true}]}
     */

    private Long code;
    private String message;
    private OceanengineAccountDataBean data;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取已授权账户信息返回参数实体")
    public static class OceanengineAccountDataBean {
        private List<OceanengineAccountListBean> list;

        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取已授权账户信息返回参数实体集合")
        public static class OceanengineAccountListBean {
            /**
             * advertiser_id : 12312321
             * advertiser_name : test_developer
             * advertiser_role : 1
             * is_valid : true
             */
            @ApiModelProperty(value = "广告主id")
            private Long advertiser_id;
            @ApiModelProperty(value = "广告主名称")
            private String advertiser_name;
            @ApiModelProperty(value = "广告主角色，1-普通广告主，2-账号管家，3-一级代理商，4-二级代理商")
            private Long advertiser_role;
            @ApiModelProperty(value = "true/false,当前授权广告主是否可正常访问")
            private boolean is_valid;
            @ApiModelProperty(value = "当广告主角色是2-账号管家时，要获取该管家下的广告主")
            private List<OceanengineAccountManagerInfo.OceanengineAccountManagerInfoDataBean.OceanengineAccountManagerInfoListBean> list;
        }
    }
}
